package com.facade;

/**
 * 外观模式：为子系统中的一组接口提供了一个一致的界面，此模式定义了一个高层接口，这个接口使得这一子系统更加容易使用
 * 
 * @author Administrator
 *
 */
public class Facade {

	private SubSystemOne one;
	private SubSystemTwo two;
	private SubSystemThree three;
	private SubSystemFour four;

	public Facade() {
		one = new SubSystemOne();
		two = new SubSystemTwo();
		three = new SubSystemThree();
		four = new SubSystemFour();
	}

	public void methodA() {
		one.methodOne();
		two.methodTwo();
		four.methodFour();
	}

	public void methodB() {
		two.methodTwo();
		three.methodThree();
	}

}
